package sample;
public enum Direction {
    UP("U"), DOWN("D"),LEFT("L"),RIGHT("R");
    private String dir;
    Direction(String dir) {
        this.dir = dir;
    }
}
